package z_app_lotto2;

import javax.swing.*;
import javax.swing.table.*;
import java.util.*;
import java.awt.event.*;
import java.awt.*;

public class MyTable extends AbstractTableModel
{
	String column[];
	int data[][];
	
	public MyTable(String[] col, int[][] d)
	{
		column = col;
		data =d;
	}
	
	// 필수 메소드Overriding

	public Object getValueAt(int row, int col)
	{
		int d=data[row][col];
		return new Integer(d);
	}

	public int getRowCount()
	{
		return data.length;
	}
	public int getColumnCount()
	{
		return column.length;
	}
	
	// 선택 Method
	public String getColumnName(int col)
	{
		return (String)column[col];
	}
}